home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Graphics / sKulpt / skulpt-src / win-src / Proto.h < prev    next >
Encoding:
Text File  |  2000-08-26  |  5.0 KB  |  135 lines

  1. // Prototypes de d3dmisc.cpp
  2. HRESULT hrPreInitD3D(void);
  3. HRESULT    hrInitD3D(HWND hWnd, const GUID* pDeviceGUID);
  4. HRESULT    hrCloseD3D(BOOL bFull);
  5. HRESULT    hrShowFrame(void);
  6. HRESULT    hrRestoreSurfaces(void);
  7. VOID    vOnMove(int x, int y);
  8. HRESULT    hrRender3DEnvironment(void);
  9.  
  10. // Prototypes de Render.cpp
  11. void    vSetD3DState(void);
  12. HRESULT    hrInitWorld( LPDIRECT3DDEVICE7 pd3dDevice );
  13. HRESULT    hrRender( LPDIRECT3DDEVICE7 pd3dDevice );
  14.  
  15. // Prototypes de menuwproc.cpp
  16. LRESULT CALLBACK lrMenuWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  17. void    vUpdateMenu(void);
  18.  
  19. // Prototypes de 3dwproc.cpp
  20. LRESULT CALLBACK lrPerspWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  21. void    vForce3DRefresh(BOOL bFull);
  22.  
  23. // Prototypes de 2dwproc.cpp
  24. LRESULT CALLBACK lrPlanarWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  25. void    vForce2DRefresh(BOOL bFull);
  26.  
  27. // Prototypes de logo.cpp
  28. void    vLogo(void);
  29.  
  30. // Prototypes de winstuff.c
  31. void    vTrace(char *Str, ...);
  32. void    vPrepareGadgets(void);
  33. void    vEraseGadgets(void);
  34.  
  35. // Prototypes de file-sculpt.cpp
  36. void    vLoadSculpt(void);
  37. void    vSaveSculpt(void);
  38.  
  39. // Prototypes de file-bin.cpp
  40. void    vLoadBin(void);
  41. void    vSaveBin(void);
  42.  
  43. // Prototypes de file-directx.cpp
  44. void    vLoadDirectX(void);
  45. void    vSaveDirectX(void);
  46.  
  47. // prototypes de dialogs.cpp
  48. BOOL CALLBACK bGlobLightDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  49. BOOL CALLBACK bSphereDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  50. BOOL CALLBACK bFaceDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  51. BOOL CALLBACK bExpandDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  52. BOOL CALLBACK bHelixDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  53. BOOL CALLBACK bHoleDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  54. BOOL CALLBACK bStringDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  55.  
  56. // Prototypes de BaseObjects.cpp
  57. int        iFindVertex(D3DVECTOR p, int iPrevious);
  58. int        iMakeVertex(D3DVECTOR p, BOOL bSame);
  59. BOOL    bVertInEdge(int iVert, int iEdge);
  60. BOOL    bVertInTriangle(int iVert, int iTriangle);
  61. BOOL    bIsVertexSelected(int iVertex);
  62. int        iEdgesPerVert(int iVert);
  63. int        iTrianglesPerVert(int iVert);
  64. BOOL    bDeleteVertex(int iCnt);
  65. BOOL    bSmoothNorm(int iVertex);
  66.  
  67. int        iFindEdge(int i1, int i2);
  68. int        iMakeEdge(int i1, int i2);
  69. BOOL    bDeleteEdge(int iCnt);
  70. BOOL    bIsEdgeSelected(int iTriangle);
  71. BOOL    bIsEdgePartiallySelected(int iTriangle);
  72.  
  73. int        iFindTriangle(int i1, int i2, int i3);
  74. int        iMakeTriangle(int i1, int i2, int i3, unsigned char bRouge, unsigned char bVert, unsigned char bBleu);
  75. BOOL    bDeleteTriangle(int iCnt);
  76. BOOL    bUpdateD3DTri(int iCnt);
  77. BOOL    bSubdivideTriangle(int iTriangle);
  78. BOOL    bIsTriangleSelected(int iTriangle);
  79. BOOL    bIsTrianglePartiallySelected(int iTriangle);
  80.  
  81. int iFindLamp(D3DVECTOR p, int iPrevious);
  82. int iMakeLamp(
  83.     D3DLIGHTTYPE    dltType,            /* Type of light source */
  84.     D3DCOLORVALUE   dcvDiffuse,         /* Diffuse color of light */
  85.     D3DCOLORVALUE   dcvSpecular,        /* Specular color of light */
  86.     D3DCOLORVALUE   dcvAmbient,         /* Ambient color of light */
  87.     D3DVECTOR       dvPosition,         /* Position in world space */
  88.     D3DVECTOR       dvDirection,        /* Direction in world space */
  89.     D3DVALUE        dvRange,            /* Cutoff range */
  90.     D3DVALUE        dvFalloff,          /* Falloff */
  91.     D3DVALUE        dvAttenuation0,     /* Constant attenuation */
  92.     D3DVALUE        dvAttenuation1,     /* Linear attenuation */
  93.     D3DVALUE        dvAttenuation2,     /* Quadratic attenuation */
  94.     D3DVALUE        dvTheta,            /* Inner angle of spotlight cone */
  95.     D3DVALUE        dvPhi               /* Outer angle of spotlight cone */
  96. );
  97. BOOL    bUpdateLamp(int iLamp);
  98. BOOL    bDeleteLamp(int iLamp);
  99.  
  100. void    vResetProcess(void);
  101. void    vDeleteObjects(void);
  102. void    vPropagateSelection();
  103. BOOL    bCloneSelection(D3DVECTOR vShift, BOOL bCloneMode);
  104. void    vHideSelection(void);
  105. void    vRevealHidden(void);
  106. D3DVECTOR vCenter(void);
  107. void    vCollect(void);
  108.  
  109. // prototypes de GeomObjects.cpp
  110. void    vAddSphere(D3DVECTOR vCenter, float r, int horiz, int vert, BOOL bHalf);
  111. void    vAddBoing(D3DVECTOR vCenter, float r);
  112. void    vAddTorus(D3DVECTOR vCenter, float R, float r, int n, int m);
  113. void    vAddDisk(D3DVECTOR vCenter, float r, int iSubdiv);
  114. void    vAddCircle(D3DVECTOR vCenter, float r, int iSubdiv);
  115.  
  116. // Prototypes de Objects - D3D
  117. void    vDeleteD3DObjects(void);
  118. int        iMakeD3DObj(void);
  119. int        iFindD3DObject(D3DVECTOR p, int iPrevious);
  120. BOOL    bMoveD3DObj(int iObject, D3DVECTOR vPos);
  121.  
  122. // Prototypes de d3denum.cpp
  123. HRESULT D3DEnum_SelectDefaultDevice(D3DEnum_DeviceInfo** ppDevice, DWORD dwFlags);
  124. HRESULT D3DEnum_UserChangeDevice(D3DEnum_DeviceInfo** ppDevice);
  125.  
  126. // Prototypes de triangulate.cpp
  127. void    fill(void);
  128.  
  129. // Prototypes de triangulator.cpp
  130. void    triangulate(char *triswitches, struct triangulateio *in, struct triangulateio *out, struct triangulateio *vorout);
  131.  
  132. // Prototypes de FontOutliner.cpp
  133. void    vAddTextOutline(void);
  134.  
  135.